﻿DROP TABLE IF EXISTS `open_goods_color`;
CREATE TABLE `open_goods_color` (
  `goods_color_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `goods_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `color_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `color_name` varchar(50) NOT NULL DEFAULT '',
  `adjust_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00',
  `img_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`goods_color_id`),
  KEY `goods_id` (`goods_id`),
  KEY `color_id` (`color_id`),
  KEY `img_id` (`img_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;